/**
 * 
 */
package com.geekteam.masterenglish.utils;

import org.acra.ACRA;
import org.acra.annotation.ReportsCrashes;
import org.acra.sender.EmailIntentSender;

import android.app.Application;

/**
 * @author MTROL
 *
 */
@ReportsCrashes(formKey = "")
public class EEApplications extends Application{
	private static EEApplications mInstance;
	
	public EEApplications() {
		mInstance = this;
	}

	public static EEApplications getInstance() {
		if (mInstance == null) {
			synchronized (EEApplications.class) {
				if (mInstance == null) {
					mInstance = new EEApplications();
				}
			}
		}

		return mInstance;
	}
	
	@Override
	public void onCreate() {
		ACRA.init(this);
		EmailIntentSender yourSender = new EmailIntentSender(this);
		ACRA.getErrorReporter().setReportSender(yourSender);
		
		super.onCreate();
	}
}
